package com.canaan.business.mapper.inOutStock;

import com.canaan.business.domain.inOutStock.WmsOutStockOrder;
import com.canaan.business.domain.vo.WmsOutStockOrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 出库单Mapper接口
 *
 * @author ruoyi
 * @date 2022-12-20
 */
public interface WmsOutStockOrderMapper
{
    /**
     * 查询出库单
     *
     * @param id 出库单主键
     * @return 出库单
     */
    public WmsOutStockOrder selectWmsOutStockOrderById(Long id);

    /**
     * 查询出库单列表
     *
     * @param outStockOrder 出库单
     * @return 出库单集合
     */
    public List<WmsOutStockOrder> selectWmsOutStockOrderList(WmsOutStockOrder outStockOrder);

    /**
     * 新增出库单
     *
     * @param outStockOrder 出库单
     * @return 结果
     */
    public int insertWmsOutStockOrder(WmsOutStockOrder outStockOrder);

    /**
     * 批量新增出库单
     *
     * @param outStockOrderList 出库单列表
     * @return 结果
     */
    public int batchInsertWmsOutStockOrder(List<WmsOutStockOrder> outStockOrderList);

    /**
     * 修改出库单
     *
     * @param outStockOrder 出库单
     * @return 结果
     */
    public int updateWmsOutStockOrder(WmsOutStockOrder outStockOrder);

    /**
     * 批量修改出库单
     *
     * @param outStockOrderList 出库单列表
     * @return 结果
     */
    public int batchUpdateWmsOutStockOrder(List<WmsOutStockOrder> outStockOrderList);

    /**
     * 删除出库单
     *
     * @param id 出库单主键
     * @return 结果
     */
    public int deleteWmsOutStockOrderById(Long id);

    /**
     * 批量删除出库单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWmsOutStockOrderByIds(Long[] ids);

    /**
     * 查询出库单
     *
     * @param no 编号
     * @return 出库单
     */
    public WmsOutStockOrder selectWmsOutStockOrderByNo(String no);

    /**
     * 批量删除出库单
     *
     * @param nos 需要删除的编号集合
     * @return 结果
     */
    public int deleteWmsOutStockOrderByNos(String[] nos);

    /**
     * 删除出库单信息
     *
     * @param no 编号
     * @return 结果
     */
    public int deleteWmsOutStockOrderByNo(String no);

    /**
     * 导出列表查询
     * @param entity    参数
     * @return 导出列表
     */
    public List<WmsOutStockOrderVo> exportList(WmsOutStockOrder entity);

    WmsOutStockOrder selectWmsOutStockOrderByRelOrderNo(@Param("relOrderNo") String relOrderNo,@Param("orderType") Integer orderType);



}
